﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebEntities;
using WebEntities.Models.Framework;
using com.subb.WebFramework;

namespace WebUI.Controllers
{
    public class ComPartViewController : Controller
    {
        public ActionResult TopMenu(string actmenuId)
        {
            ViewBag.ActMenu = actmenuId;
            FW_MenuItemDAL midal = new FW_MenuItemDAL();
            List<FW_MenuItem> mitemList = midal.GetAllMenuItems();
            FW_MenuDAL mdal = new FW_MenuDAL();
            List<FW_Menu> menuList = mdal.GetAllMenusByType(UIMenu.FrontMenuType);
            ViewBag.MenuList = menuList;
            return PartialView(mitemList);
        }

    }
}
